package com.itany.corejava.code07_面向对象.封装;

/**
 * @author 石小俊
 * @date 2023年04月19日 9:17
 */
public class TestPoker {
    public static void main(String[] args) {
        Poker poker = new Poker();
        Card[] cards = poker.getCards();
        for (Card card : cards) {
            System.out.print(card.getColor() + card.getNum() + "\t");
        }
        System.out.println();
        // 洗牌
        poker.shuffleCard();
        // 获取洗牌后的数据
        cards = poker.getCards();
        for (Card card : cards) {
            System.out.print(card.getColor() + card.getNum() + "\t");
        }
    }
}
